<?php

// 自动加载类
require_once __DIR__ . '/Cmd/cmdbase.php';

// 加载所有
foreach(glob(__DIR__.'/Cmd/cmd_*.php') as $start_file)
{
    require_once $start_file;
}

$GLOBALS['Cmd_center'] = array(
	cmd_login::class => new cmd_login(),
	cmd_reconnect::class => new cmd_reconnect(),
	cmd_createroom::class => new cmd_createroom(),
	cmd_enterroom::class => new cmd_enterroom(),
	cmd_dealcard::class => new cmd_dealcard(),
	cmd_exitroom::class => new cmd_exitroom(),
	cmd_vote::class => new cmd_vote(),
	cmd_examtrain::class => new cmd_examtrain(),
	cmd_voteclear::class => new cmd_voteclear(),
	cmd_chat::class => new cmd_chat(),
	//cmd_match::class => new cmd_match(),
	//cmd_exitroom::class => new cmd_exitroom(),
	//cmd_startbattle::class => new cmd_startbattle(),
	//cmd_actionbattle::class => new cmd_actionbattle(),
	//cmd_exitbattle::class => new cmd_exitbattle(),
	
	//cmd_reenterroom::class => new cmd_reenterroom(),
 );